package com.zykj.spb.study.controller;

import com.battcn.swagger.properties.ApiDataType;
import com.battcn.swagger.properties.ApiParamType;
import com.zykj.spb.study.mapper.EvaluateMapper;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author zhoulj(周利军) [1217102780@qq.com]
 * @Title: EvaluateController
 * @Project: ${MODEL_NAME}
 * @Module ID:   <(模块)类编号，可以引用系统设计中的类编号>
 * @Comments: <对此类的描述，可以引用系统设计中的描述>
 * @JDK version used:      <JDK1.8> 06
 * @since 2018/12/19-11:06
 */
@Controller
@RequestMapping("evaluate")
@Api(tags = "1.1", description = "评价管理description", value = "评价管理")
public class EvaluateController {

    @Autowired
    EvaluateMapper evaluateMapper;
    @ApiOperation(value = "条件查询（DONE）")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "username", value = "用户名", dataType = ApiDataType.STRING, paramType = ApiParamType.QUERY),
            @ApiImplicitParam(name = "password", value = "密码", dataType = ApiDataType.STRING, paramType = ApiParamType.QUERY),
    })
    @RequestMapping("page")
    @ResponseBody
    public String getEavaluatePage(@RequestParam(value = "username",required = false) String username,
                                   @RequestParam(value = "password",required = false) String password) {
        evaluateMapper.getAllEvaluate();
        return "";
    }
}
